home *** CD-ROM | disk | FTP | other *** search
/ ftp.cs.arizona.edu / ftp.cs.arizona.edu.tar / ftp.cs.arizona.edu / icon / newsgrp / group94a.txt / 000024_icon-group-sender _Sat Jan 15 18:20:55 1994.msg < prev    next >
Internet Message Format  |  1994-08-19  |  1KB

  1. Received: by cheltenham.cs.arizona.edu; Sat, 22 Jan 1994 09:28:26 MST
  2. Date: 15 Jan 94 18:20:55 GMT
  3. From: cis.ohio-state.edu!math.ohio-state.edu!howland.reston.ans.net!noc.near.net!news.delphi.com!dligda@ucbvax.Berkeley.EDU  (David Ligda)
  4. Organization: Delphi Internet Services Corporation
  5. Subject: Suggestion to handle "or" type expres.
  6. Message-Id: <9401151317591.dligda.DLITE@delphi.com>
  7. Sender: icon-group-request@cs.arizona.edu
  8. To: icon-group@cs.arizona.edu
  9. Status: RO
  10. Errors-To: icon-group-errors@cs.arizona.edu
  11.  
  12. Hello All,
  13.  
  14. Sorry to have to keep asking these beginner questions but I am travelling
  15. and don't have my ICON books.
  16.  
  17. Could someone suggest a method to modify the following expression so that it
  18. will also check for a letter (&letter) at position 56?  In other words the
  19. expression is true if there is a digit at position 5 and there is a digit OR
  20. a letter at position 56.
  21.  
  22.        if any(&digits, line[5] & line[56]) then    # Is there a number at
  23.                                                    # pos. 5 and at pos. 56?
  24.  
  25. Thanks!
  26.  
  27. David
  28.